﻿using System;
using ARD.EventRouting;
using SharpObjects.SearchEngine.Common.Search;

namespace SharpObjects.SearchEngine.Common.ApplicationEvents
{
    [Serializable]
    public class SearchApplicationEvent : IApplicationEvent
    {
        public SearchApplicationEvent()
        {
            this.IndexDirectoryId = IndexDirectoryDescriptor.DefaultIndexDirectoryId;
            this.PageSize = 100;
            this.PageNumber = 0;
        }

        // in
        public string IndexDirectoryId { get; set; }
        public IQueryConstraint Constraint { get; set; }
        public int PageSize { get; set; }
        public int PageNumber { get; set; }

        // out
        public IQueryResult QueryResult { get; set; }

    }
}
